package com.bdqn.controller;

import com.bdqn.pojo.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import java.io.File;

/**
 * @Author 27435
 * @Date 2025/1/921:21
 * @Version 1.0
 */

@Controller
public class HelloController {

    @RequestMapping(value = "/hello", method = {RequestMethod.POST})
    @ResponseBody
    public String saHello(){
        return "{'msg':'hello mvc'}";
    }

    @RequestMapping(value = "/hello1")
    @ResponseBody
    public String saHello1(){
//        int a = 10 / 0;
//        File file = null;
        User user = null;
        return "{'msg':'hello1 mvc'}";
    }

}
